how could I amend this code to keep on adding values and saving the added values in the dictionary.So if i run the code again {T:100} will be in the dictionary and I can then add another value
thanks :)
You must be logged in to post. Please login or register an account.
you can say score[t] = newvalue. In your code, you could simply have
If you convert values to a list, you can also append to the list, but this seems more like you're counting letters or something, so you just simply redefine the value.
-Harrison 9 years ago
You must be logged in to post. Please login or register an account.